import request from "../utils/request"

const recipeRequest = {
    getAllshow(params){
        return request({
            url:"/admin/findAllMenu",
            method:"POST",
            data:params,
            headers:{ 'Authorization': window.localStorage.getItem("token") }
        })
    },
    getsearchMenu(params){
        return request({
            url:"/admin/searchMenu",
            method:"POST",
            data:params,
            headers:{ 'Authorization': window.localStorage.getItem("token") }
        })
    },
    getmenuDetail(params){
        return request({
            url:"/admin/menuDetail",
            method:"POST",
            data:params,
            headers:{ 'Authorization': window.localStorage.getItem("token") }
        })
    },
    getupdateMenu(params){
        return request({
            url:"/admin/updateMenu",
            method:"POST",
            data:params,
            headers:{ 'Authorization': window.localStorage.getItem("token") }
        })
    },
}

export default recipeRequest